﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<AnalisisDeRiesgos.Models.User.RegisterUserModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Registrar Usuario
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Registrar Usuarios</h2>
    
    <% using (Html.BeginForm()) {%>    
        <fieldset>
            <legend>Campos</legend>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.CI) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CI) %>
                <%: Html.ValidationMessageFor(model => model.CI) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FirstName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FirstName) %>
                <%: Html.ValidationMessageFor(model => model.FirstName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.LastName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.LastName) %>
                <%: Html.ValidationMessageFor(model => model.LastName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.SecondLastName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.SecondLastName) %>
                <%: Html.ValidationMessageFor(model => model.SecondLastName) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Privilege) %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownListFor(model => model.Privilege, Model.PrivilegeList) %>
                <%: Html.ValidationMessageFor(model => model.Privilege) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Password) %>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(model => model.Password) %>
                <%: Html.ValidationMessageFor(model => model.Password) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.RePassword) %>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(model => model.RePassword) %>
                <%: Html.ValidationMessageFor(model => model.RePassword) %>
            </div>
            
            <p>
                <input type="submit" value="Registrar" />
            </p>
        </fieldset>
    <%: Html.ValidationSummary(true) %>
    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index") %>
    </div>

</asp:Content>

